package cc.lj.internal.coupons.domain.ticket.model.vo.convert;

import cc.lj.internal.coupons.domain.ticket.model.vo.TicketBatchDO;
import cc.lj.internal.coupons.infrastructure.po.TicketBatchPO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 电子券批次表PO 与 DO之间的转换
 * @author liangxifeng
 * @date 2021-12-11
 */
@Mapper
public interface TicketBatchPOConvertDO {
    TicketBatchPOConvertDO INSTANCE = Mappers.getMapper(TicketBatchPOConvertDO.class);
    //do to po
    TicketBatchPO convert(TicketBatchDO ticketBatchDO);

    //po to do
    TicketBatchDO convert(TicketBatchPO ticketBatchPO);
}
